package com.atguigu.service;

import com.atguigu.pojo.Headline;
import com.atguigu.pojo.vo.PortalVo;
import com.atguigu.utils.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
* @author ASUS
* @description 针对表【news_headline】的数据库操作Service
* @createDate 2025-11-03 14:39:24
*/
public interface HeadlineService extends IService<Headline> {

    //首页数据查询
    Result findNewsPage(PortalVo portalVo);


    //根据id查询头条详情
    Result showHeadlineDetail(Integer hid);

    //发布头条的方法
    Result publish(Headline headline,String token);

    //修改头条信息的方法
    Result updateData(Headline headline);
}
